<?php

namespace app\common\model\mould;

use app\common\model\BaseModel;

/**
 * 模型
 */
class Mould extends BaseModel
{
    protected $name = 'mould';
    protected $pk = 'mould_id';

    /**
     * 所有系统模型
     */
    public static function getALL($mould_id = 0)
    {
        $where = [];
        if ($mould_id) {
            $where['mould_id'] = $mould_id;
        }
        $model = new static;
        return $model->where($where)
            ->where('is_delete', '=', 0)
            ->order(['create_time' => 'asc'])
            ->select();
    }

}